package cn.wit.sst.dto;

public class ScoreRankDto {
	private Long cid; 		// 课程id
	private Long sid; 		// 学生id
	private Short startYear; // 学年
	private Byte semester;	// 学期
	private Float score; 	// 分数
	private Integer rank; 	// 排名，分数相同，排名一样
	private Integer index; 	// 自然排名，不考虑分数相同

	// 显示在界面上的学期名，比如 大一（上），大一（下）等等。。
	private String displaySemester;

	private String course;
	private String student;

	public Long getCid() {
		return cid;
	}

	public void setCid(Long cid) {
		this.cid = cid;
	}

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public Float getScore() {
		return score;
	}

	public void setScore(Float score) {
		this.score = score;
	}

	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("ScoreRankDto [cid=")
			.append(cid).append(", sid=").append(sid)
			.append(", student=").append(student)
			.append(", score=").append(score)
			.append(", index=").append(index)
			.append(", rank=").append(rank).append("]");
		return builder.toString();
	}

	public Integer getIndex() {
		return index;
	}

	public void setIndex(Integer index) {
		this.index = index;
	}

	public String getCourse() {
		return course;
	}

	public void setCourse(String course) {
		this.course = course;
	}

	public String getStudent() {
		return student;
	}

	public void setStudent(String student) {
		this.student = student;
	}

	public Short getStartYear() {
		return startYear;
	}

	public void setStartYear(Short startYear) {
		this.startYear = startYear;
	}

	public Byte getSemester() {
		return semester;
	}

	public void setSemester(Byte semester) {
		this.semester = semester;
	}

	public String getDisplaySemester() {
		return displaySemester;
	}

	public void setDisplaySemester(String displaySemester) {
		this.displaySemester = displaySemester;
	}
}
